<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <div th:include="~{include/include :: cssStyle }">
    </div>
    <style>
        #footer {
            padding: 15px 0;
            background: #fff;
            border-top: 1px solid #ddd;
            text-align: center;
        }
        #topcontrol {
            color: #fff;
            z-index: 99;
            width: 30px;
            height: 30px;
            font-size: 20px;
            background: #222;
            position: relative;
            right: 14px !important;
            bottom: 11px !important;
            border-radius: 3px !important;
        }

        #topcontrol:after {
            /*top: -2px;*/
            left: 8.5px;
            content: "\f106";
            position: absolute;
            text-align: center;
            font-family: FontAwesome;
        }

        #topcontrol:hover {
            color: #fff;
            background: #18ba9b;
            -webkit-transition: all 0.3s ease-in-out;
            -moz-transition: all 0.3s ease-in-out;
            -o-transition: all 0.3s ease-in-out;
            transition: all 0.3s ease-in-out;
        }
        .nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover {
            border-bottom-color: #ddd;
        }
        .nav-tabs>li>a {
            border-radius: 0;
        }
    </style>
</head>
<body>
<div class="navbar-wrapper">
    <div class="container">
        <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand" href="#" style="font-size:32px;">七易众筹-创意产品众筹平台</a>
                </div>
                <div id="navbar" class="navbar-collapse collapse" style="float:right;">
                    <ul class="nav navbar-nav">
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="glyphicon glyphicon-user"></i> 张三<span class="caret"></span></a>
                            <ul class="dropdown-menu" role="menu">
                                <li><a href="member.html"><i class="glyphicon glyphicon-scale"></i> 会员中心</a></li>
                                <li><a href="#"><i class="glyphicon glyphicon-comment"></i> 消息</a></li>
                                <li class="divider"></li>
                                <li><a href="index.html"><i class="glyphicon glyphicon-off"></i> 退出系统</a></li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
    </div>
</div>

<div class="container theme-showcase" role="main">

    <div class="container">
        <div class="row clearfix">
            <div class="col-md-12 column">
                <nav class="navbar navbar-default" role="navigation">
                    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                        <ul class="nav navbar-nav">
                            <li>
                                <a rel="nofollow" href="index.html"><i class="glyphicon glyphicon-home"></i> 众筹首页</a>
                            </li>
                            <li >
                                <a rel="nofollow" href="projects.html"><i class="glyphicon glyphicon-th-large"></i> 众筹项目</a>
                            </li>
                            <li>
                                <a rel="nofollow" href="start.html"><i class="glyphicon glyphicon-edit"></i> 发起众筹</a>
                            </li>
                            <li>
                                <a rel="nofollow" href="minecrowdfunding.html"><i class="glyphicon glyphicon-user"></i> 我的众筹</a>
                            </li>
                        </ul>
                    </div>
                </nav>
            </div>
        </div>
    </div>


    <div class="container">
        <div class="row clearfix">
            <div class="col-md-12 column">
                <div class="jumbotron nofollow" style="    padding-top: 10px;">
                    <h3 th:text="${DetailVo.name}">
                        项目名称
                    </h3>
                    <div style="float:left;width:70%;" th:text="${DetailVo.remark}">
                        项目介绍
                    </div>
                    <div style="float:right;">
                        <button type="button" class="btn btn-default"><i style="color:#f60" class="glyphicon glyphicon-heart"></i> 关注 [[${DetailVo.follower}]]</button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="container">
        <div class="row clearfix">
            <div class="col-md-12 column">
                <div class="row clearfix">
                    <div class="col-md-8 column">
                        <img alt="140x140" width="740" th:src="${projectImage}" th:each="projectImage:${DetailVo.detailsImage}"/>

                    </div>
                    <div class="col-md-4 column">
                        <div class="panel panel-default" style="border-radius: 0px;">
                            <div class="panel-heading" style="background-color: #fff;border-color: #fff;">
                                    <span class="label label-success">
                                        <i class="glyphicon glyphicon-tag"></i>
                                        <span th:if="${DetailVo.status == '5'}" th:text="众筹开始"></span>
                                        <span th:if="${DetailVo.status == '6'}" th:text="众筹成功"></span>
                                        <span th:if="${DetailVo.status == '7'}" th:text="众筹完成"></span>
                                        <span th:if="${DetailVo.status == '8'}" th:text="众筹失败"></span>
                                    </span>
                            </div>
                            <div class="panel-body">
                                <h3 >
                                    已筹资金：￥[[${DetailVo.supportmoney}]]
                                </h3>
                                <p><span>目标金额 ： [[${DetailVo.money}]]</span><span style="float:right;">达成 ： [[${DetailVo.completion}]]%</span></p>
                                <div class="progress" style="height:10px; margin-bottom: 5px;">
                                    <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;"></div>
                                </div>
                                <p>剩余 [[${DetailVo.day}]] 天</p>
                                <div>
                                    <p><span>已有[[${DetailVo.supporter}]]人支持该项目</p>
                                    <a class="btn  btn-warning btn-lg btn-block" data-toggle="modal" data-target="#myModal">立即支持</a>
                                </div>
                            </div>
                            <div class="panel-footer" style="    background-color: #fff;
                                    border-top: 1px solid #ddd;
                                    border-bottom-right-radius: 0px;
                                    border-bottom-left-radius: 0px;">
                                <div class="container-fluid">
                                    <div class="row clearfix">
                                        <div class="col-md-3 column" style="padding:0;">
                                            <img alt="140x140" th:src="@{/img/services-box2.jpg}" data-holder-rendered="true" style="width: 80px; height: 80px;">
                                        </div>
                                        <div class="col-md-9 column">
                                            <div class="">
                                                <h4>
                                                    <b>项目发包方</b> <span style="float:right;font-size:12px;" class="label label-success">已认证</span>
                                                </h4>
                                                <p style="font-size:12px">
                                                    我们有一支朝气蓬勃，有激情、有想法、敢实践的团队。

                                                </p>
                                                <p style="font-size:12px">
                                                    客服电话:010-22333445
                                                </p>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="panel panel-default" style="border-radius: 0px;" th:each="projectReturn:${DetailVo.projectReturns}">
                            <div class="panel-heading">
                                <h3 >
                                    ￥[[${projectReturn.supportmoney}]] <span style="float:right;font-size:12px;">
                                <span th:if="projectReturn.signalpurchase == 0?'无限额':'限额'+projectReturn.signalpurchase+'份'"></span>，447位支持者</span>
                                </h3>
                            </div>
                            <div class="panel-body">
                                <p>配送费用：[[${projectReturn.freight==0?'包邮':projectReturn.freight+'元'}]]</p>
                                <p>预计发放时间：项目筹款成功后的[[${projectReturn.rtndate}]]天内</p>
                                <a  class="btn  btn-warning btn-lg " th:href="@{/project/confirm/returns/{projectId}/{returnId}(projectId=${DetailVo.id},returnId=${projectReturn.id})}">支持</a>
                                <br><br>
                                <p th:text="${projectReturn.content}"></p>
                            </div>
                        </div>
                        <div class=" panel panel-default" style="border-radius: 0px;">
                            <div class="panel-heading">
                                <h3 >
                                    风险提示
                                </h3>
                            </div>
                            <div class="panel-body">
                                <p>1.众筹并非商品交易，存在一定风险。支持者根据自己的判断选择、支持众筹项目，与发起人共同实现梦想并获得发起人承诺的回报。<br>
                                    2.众筹平台仅提供平台网络空间及技术支持等中介服务，众筹仅存在于发起人和支持者之间，使用众筹平台产生的法律后果由发起人与支持者自行承担。<br>
                                    3.本项目必须在2017-06-09之前达到￥10000.00 的目标才算成功，否则已经支持的订单将取消。订单取消或募集失败的，您支持的金额将原支付路径退回。<br>
                                    4.请在支持项目后15分钟内付款，否则您的支持请求会被自动关闭。<br>
                                    5.众筹成功后由发起人统一进行发货，售后服务由发起人统一提供；如果发生发起人无法发放回报、延迟发放回报、不提供回报后续服务等情况，您需要直接和发起人协商解决。<br>
                                    6.如您不同意上述风险提示内容，您有权选择不支持；一旦选择支持，视为您已确认并同意以上提示内容。</p>
                            </div>
                        </div>

                        <div><h2>为你推荐</h2><hr></div>
                        <div class="prjtip panel panel-default" style="border-radius: 0px;">
                            <div class="panel-body">
                                <img th:src="@{/img/product-3.png}" width="100%" height="100%">
                            </div>
                        </div>

                        <div class="prjtip panel panel-default" style="border-radius: 0px;">
                            <div class="panel-body">
                                <img th:src="@{/img/product-4.jpg}" width="100%" height="100%">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- FOOTER -->
    <div id="footerBar">
        <div th:replace="~{include/include :: #footerBar}"></div>
    </div>
</div> <!-- /container -->


<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
    <div class="modal-dialog "  style="width:960px;height:400px;" role="document">
        <div class="modal-content" data-spy="scroll" data-target="#myScrollspy">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">选择支持项</h4>
            </div>
            <div class="modal-body">
                <div class="container-fluid">
                    <div class="row clearfix">
                        <div class="col-sm-3 col-md-3 column" id="myScrollspy">
                            <ul class="nav nav-tabs nav-stacked">
                                <li class="active">
                                    <a th:href="${'#section'+iterStat.index}" th:each="ret,iterStat:${DetailVo.projectReturns}">
                                        ￥[[${ret.supportmoney}]]</a></li>
                            </ul>
                        </div>
                        <div id="navList" class="col-sm-9 col-md-9 column" style="height:400px;overflow-y:auto;">
                            <div th:each="ret,iterStat:${DetailVo.projectReturns}">
                                <h2 id="${'#section'+iterStat.index}" style="border-bottom:1px dashed #ddd;" ><span style="font-size:20px;font-weight:bold;">￥[[${ret.supportmoney}]]</span><span style="font-size:12px;margin-left:60px;">无限额，223位支持者</span></h2>
                                <p>配送费用：全国包邮</p>
                                <p>预计发放时间：项目筹款成功后的30天内</p>
                                <a  class="btn  btn-warning btn-lg " th:href="@{/project/confirm/returns/{projectId}/{returnId}(projectId=${DetailVo.id},returnId=${ret.id})}">支持</a>
                                <br><br>
                                <p>每满1750人抽取一台活性富氢净水直饮机，至少抽取一台。抽取名额（小数点后一位四舍五入）=参与人数÷1750人，由苏宁官方抽取。</p>
                                <hr>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>

<div th:include="~{include/include :: commonJs}"></div>
<script>
    $(".prjtip img").css("cursor", "pointer");
    $(".prjtip img").click(function(){
        window.location.href = 'project.html';
    });
</script>
</body>
</html>
